home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 December / MACPOWER-1997-12.ISO.7z / MACPOWER-1997-12.ISO / AMUG / PROGRAMMING / Raven 1.2.sit / Raven 1.2 / • Extras • / SGI STL / README.CodeWarrior < prev    next >
Text File  |  1997-07-27  |  2KB  |  51 lines

  1. Note For CodeWarrior Users
  2.  
  3. ----------------------------------------------------------------------------
  4.  
  5. Known problems
  6.  
  7. Compiling
  8.  
  9.     * Using SGI's STL with MSL C++ introduces some nasty circular dependencies
  10.       between iterator.h, iostream.h, bstring.h, and algobase.h. To fix this 
  11.       I've moved SGI's iostream iterator classes into a new streamiterator.h
  12.       file. You'll have to modify MSL's istream.h and ostream.h to include
  13.       this file. For example:
  14.             #if __SGI_STL                        // ・・・ハJDJ
  15.             #include <streamiterator.h>
  16.             #endif
  17.  
  18.     * The MSL C++ library should be rebuilt so that it takes advantage of
  19.       SGI's exception safety (and to avert possible link errors). The easiest
  20.       way to do is to remove MSL C++.PPC.Lib from your project and add the
  21.       libary files to your project. These files are 
  22.               complex.cpp
  23.               facet.cpp 
  24.               iostream.cpp
  25.               locimp.cpp
  26.               mathlib.cpp
  27.               mlimits.cpp
  28.               iomanip.cpp
  29.               inst1.cpp 
  30.               inst2.cpp. 
  31.       Or you can create a new version of MSL C++.PPC.prj, change the access 
  32.       paths to point to SGI, and build a new library.
  33.       
  34.     * SGI expects that operator new throws when it runs out of memory (like
  35.       the C++ standard specifies). Unfortunately CodeWarrior still doesn't
  36.       do this by default. To make operator new throw you can set __throws_bad_alloc
  37.       to true (this is in new.h).
  38.  
  39. ----------------------------------------------------------------------------
  40.  
  41. Migration notes
  42.  
  43. You should experience no other problems migrating from MSL STL to SGI STL.
  44. Default allocator<T> in this adaptation should be fully functional.
  45.  
  46. ----------------------------------------------------------------------------
  47.  
  48. Last updated : June 22, 1997.
  49.  
  50. Jesse Jones
  51. jesjones@halcyon.com